#!/bin/bash

if [ "$1" == "nodef" ] ; then
  pbjs --no-comments --no-beautify -t static-module -w es6 --es6 --force-long *.proto > weilapb.js
  pbts -o weilapb.d.ts weilapb.js
else
  pbjs --no-beautify -t static-module -w es6 --es6 --force-long *.proto > weilapb.js
  pbts -o weilapb.d.ts weilapb.js
fi

